package com.hjn.annotation.autowired.pojo;

import org.springframework.stereotype.Component;

/**
 * @author huaijn
 * @version 1.0.0
 * @Date 2020/8/30 21:03
 * @Description
 *  在spring框架中注册
 *
 */
@Component("school")
public class School {
    private String name;
    private String address;
    private String note;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public String toString() {
        return "School{" +
                "name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", note='" + note + '\'' +
                '}';
    }
}
